app.controller('loujiandaishenpiCtrl',['$scope','$http','mainService','$location',function ($scope,$http,mainService,$location) {

    var token = localStorage.getItem('token');
    mui.showLoading('正在加载','div');
    $http({
        method: "POST",
        url: mainUrl+'/tr/tr-unchecked!findByPage.action',
        params: {
            'Authorization': token,
            'qm.state':'05' ,
            'qm.approvedBy': JSON.parse(localStorage.getItem('userData')).pin,
            'page': 0,
            'start': 1,
            'limit':99999

        }
    }).then(
        function(data, status, headers, config){
            console.log(data);
            $scope.data = data.data.items;
            mui.hideLoading();
            // if(data.data.items){
            //     mainService.setLjsq(data.data.items[0].orgDepartmentId)
            // }


        },function(data, status, headers, config){
            //mui.hideLoading();

        }
    );
    $scope.sending = function ($event){
        mainService.setXq(111,$event);
        $location.path('/daiyanshouyinhuanxiangqing');
    };

}]);